package com.cn.boot.jpa.service;

import com.cn.boot.jpa.common.CommonResult;
import com.cn.boot.jpa.entity.UserEntity;

import java.util.List;

public interface IUserService {
    CommonResult findAll(Integer page, Integer size);

    CommonResult findAllByNickNameAndEmail(String nickName, String email);

    CommonResult addUser(UserEntity userEntity);

    CommonResult findById(Integer id);

    CommonResult addUsers(List<UserEntity> users);
}
